﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SharpDX.Direct3D9;

namespace Omega.Game.Framework
{
    [Serializable()]
    public class Model3D : Interfaces.IComponent, Interfaces.IPrimitive, Interfaces.IRender
    {



        Mesh _mesh;
        int verticescount;


        public VertexBuffer Vertices
        {
            get
            {
                throw new NotImplementedException();
            }
            set
            {
                throw new NotImplementedException();
            }
        }

        public IndexBuffer IndexBuffer
        {
            get
            {
                throw new NotImplementedException();
            }
            set
            {
                throw new NotImplementedException();
            }
        }

        public int TriangleCount
        {
            get
            {
                if (Vertices == null)
                    return 0;

                return verticescount / 3;


            }
        }

        public Interfaces.IComponent Parent
        {
            get;
            set;
        }

        public string Name
        {
            get;
            set;
        }

        public void Init()
        {

        }

        public void Update()
        {

        }

        public void Dispose()
        {

        }

        public bool NeedDraw
        {
            get;
            set;
        }

        public bool Disposed
        {
            get;

            set;

        }

        public void CreateRender()
        {

        }

        public void Draw()
        {

        }


        public void CreateBuffer(int lengh, Usage usage, VertexFormat vertexformat, Pool pool)
        {
            
        }
    }
}
